package com.js.admin.service;

import com.js.admin.entity.BaseElement;
import com.js.admin.entity.BaseGroup;
import com.js.admin.vo.GroupUsers;
import com.js.admin.vo.MenuTree;
import com.js.common.service.BaseService;

import java.util.List;

/**
 * @author： ygl
 * @date： 2018/11/01-17:03
 * @Description：
 */
public interface BaseGroupService extends BaseService<BaseGroup>{

    void modifyGroupUsers(String groupId, String members, String leaders);

    GroupUsers getGroupUsers(String id);

    void modifyAuthorityMenu(String id, String[] menus, String resourceTypeView);

    Object getAuthorityMenu(String id, String resourceTypeView);

    void modifyAuthorityElement(String id, String menuId, String elementId, String resourceTypeView);

    void removeAuthorityElement(String id, String elementId, String resourceTypeView);

    Object getAuthorityElement(String id, String resourceTypeView);

    List<BaseElement> getAuthorizeElements(String menuId);

    List<MenuTree> getAuthorizeMenus(String userId, String clientId);
}
